import {setColumnsDefaultKey} from '@/utils/common'
import {toDateString} from "ele-admin/packages/util";

let column = [
  {
    prop: 'RoleID',
    label: '角色ID',
    width: 70,
    align: 'center'
  },
  {
    prop: 'RoleName',
    label: '角色名',
    width: 120,
  },
  {
    prop: 'RoleDesc',
    label: '角色描述',
  },
  {
    prop: 'CreateTime',
    label: '创建时间',
    width: 140,
    align: 'center',
    formatter: (row, column, val) => {
      return toDateString(val * 1000)
    }
  },
  {
    columnKey: 'action',
    label: '操作',
    width: 220,
    align: 'center',
    resizable: false,
    slot: 'action'
  }
]

export default setColumnsDefaultKey(column)
